<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>登录成功</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
    <h3 align="center">产品列表</h1><br><br>
    <table width="70%" align="center" >
    	<tr>
    		<td>产品编号</td>
    		<td>产品名</td>
    		<td>销售额</td>
    		<td>利润</td>
    		<td>客户数量</td>
    		
    	</tr>
    	<c:forEach items="${productSaleExtensions}" var="bean">
    	<tr>
    		<td>${bean.product.id} </td>
    		<td><a href="adminHandle/productBuyDetail?id=${bean.product.id}">${bean.product.productName}</a></td>
    		<td>${bean.dccost}</td>
    		<td>${bean.profit}</td>
    		<td>${bean.ucount}</td>
    		
    	</tr>
    	</c:forEach>
    	
    	<tr>
    		<td colspan="7" align="center"> ${errMsg } </td>
    	</tr>
    </table>
  </body>
</html>
